#!/bin/bash
path=`pwd`

echo "start mysql service..."
docker run -d \
    -p 9999:3306 \
    -e MYSQL_ROOT_PASSWORD=123456 \
    -e MYSQL_DATABASE=zt_mock_admin \
    --name mock-mysql \
    --restart always \
    mysql:8.0
echo "waiting for database initialization..."
sleep 20s
docker logs --tail=10 mock-mysql
echo "mysql service start!"
